execute as @e[name="

Undead Warrior

",tag=SKYWIZA-spawner] at @s if score @s SKYWIZA-status matches ..-1 run summon 

minecraft:zombified_piglin

 ~ ~ ~ {Tags:["SKYWIZA","SKYWIZA-rpg_mob"],CustomName:"\"

Undead Warrior

\"",PersistenceRequired:1b,
DeathLootTable:"minecraft:empty",
HandItems:[

{
id:golden_sword,Count:1,
tag:{display:{Name:"{\"text\":\"Undead Warrior's Sword\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- Drop from Undead Warrior\"}",
"{\"text\":\"- Normal selling price is 1 crystal nuggets\"}",
"{\"text\":\"--------------------\"}"]},Enchantments:[
{id:unbreaking,lvl:10},{id:sharpness,lvl:5}
]}}
,

{
id:"shield",Count:1b,
tag:{display:{Name:"{\"text\":\"Undead Warrior's Shield\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- Drop from Undead Warrior\"}",
"{\"text\":\"--------------------\"}"]},Enchantments:[
{id:unbreaking,lvl:10}
]}}

],
HandDropChances:[0.1f,0.1f],
ArmorItems:[

{
id:"golden_boots",Count:1b,
tag:{display:{Name:"{\"text\":\"Undead Warrior's Boots\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- Drop from Undead Warrior\"}",
"{\"text\":\"--------------------\"}"]},Enchantments:[
{id:unbreaking,lvl:10}
]}}
,

{
id:chest,Count:1,
tag:{display:{Name:"{\"text\":\"
Loot (Tier 6)\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- Drop to get loot\"}",
"{\"text\":\"--------------------\"}"]}}}
,

{
id:"leather_chestplate",Count:1b,
tag:{display:{Name:"{\"text\":\"Undead Warrior's Chestplate\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- Drop from Undead Warrior\"}",
"{\"text\":\"--------------------\"}"]},Enchantments:[
{id:unbreaking,lvl:10}
]}}
,

{
id:"iron_helmet",Count:1b,
tag:{display:{Name:"{\"text\":\"Skeleton Warrior's Helmet\"}",
Lore:["{\"text\":\"--------------------\"}",
"{\"text\":\"- Drop from Undead Warrior\"}",
"{\"text\":\"--------------------\"}"]},Enchantments:[
{id:unbreaking,lvl:10}
]}}]
,

ArmorDropChances:[0.1f,0.25f,0.1f,0.1f]}